﻿
using TMOOC.CM.MobileShop.Util;

namespace TMOOC.CM.MobileShop.Business.Base_Manage
{
    /// <summary>
    /// Home接口
    /// </summary>
    public interface IHomeBusiness
    {
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="password">密码</param>
        /// <param name="telphoneNo">手机号</param>
        /// <param name="realName">昵称</param>
        /// <returns></returns>
        AjaxResult RegistUser(string userName, string password, string telphoneNo, string realName);
        /// <summary>
        /// 用户登入
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        AjaxResult SubmitLogin(string userName, string password);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="oldPwd">旧密码</param>
        /// <param name="newPwd">新密码</param>
        /// <returns></returns>
        AjaxResult ChangePwd(string oldPwd, string newPwd);
    }
}
